import request from '@/utils/request'
import qs from 'qs'

// 识别历史记录
export function listApi() {
  return request({
    url: '/ilmp-aus-ruleexecute-app/demo/list',
    method: 'post',
  })
}

// ocr识别
export function recognizeApi(data) {
  return request({
    url: `/aiassistanted/mobile/recognize`,
    method: 'post',
    data:data,
    headers: { 'Content-Type': 'multipart/form-data' },
  })
}

// ocr进度
export function PlanResultApi(data) {
  return request({
    url: `/aiassistanted/mobile/getPlanResult?taskNo=${data}`,
    method: 'get',
  })
}

// 结果
export function underResultInfoApi(data) {
  return request({
    url: `/aiassistanted/mobile/getUnderResultInfo?taskNo=${data}`,
    method: 'get',
  })
}

// 获取标识的接口
export function identifyingApi() {
  return request({
    url: `/aiassistanted/mobile/getIdentifying`,
    method: 'get',
  })
}

//删除识别历史记录
export function removeApi(data) {
  return request({
    url: `/ilmp-aus-ruleexecute-app/demo/remove?numberCode=${data}`,
    method: 'get',
  })
}


// 获取体检项目接口
export function selectProjectApi() {
  return request({
    url: `/aiassistanted/mobile/selectProject`,
    method: 'get',
  })
}
// 根据项目获取健康项目
export function selectHealthByProject(data) {
  return request({
    url: `/aiassistanted/mobile/selectHealthByProject?id=${data}`,
    method: 'get',
  })
}


